package com.wangxiaotao.Dao;

import com.wangxiaotao.Pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import java.util.List;

public interface LoginDao {
    @Select("SELECT * FROM user WHERE username=#{username}")
    List<User> queryByusername(String username);

    @Insert("INSERT into user (name,username,password,address,sex,discrib,role_id) VALUES " +
            "(#{name},#{username},#{password},#{address},#{sex},#{discrib},#{role_id})")
    void InsertUser(User user);
}
